package com.ruoyi.orders.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.orders.mapper.TDoubtfulBillMapper;
import com.ruoyi.orders.domain.TDoubtfulBill;
import com.ruoyi.orders.service.ITDoubtfulBillService;

/**
 * 疑义账单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
@Service
public class TDoubtfulBillServiceImpl implements ITDoubtfulBillService 
{
    @Autowired
    private TDoubtfulBillMapper tDoubtfulBillMapper;

    /**
     * 查询疑义账单
     * 
     * @param billId 疑义账单主键
     * @return 疑义账单
     */
    @Override
    public TDoubtfulBill selectTDoubtfulBillByBillId(Long billId)
    {
        return tDoubtfulBillMapper.selectTDoubtfulBillByBillId(billId);
    }

    /**
     * 查询疑义账单列表
     * 
     * @param tDoubtfulBill 疑义账单
     * @return 疑义账单
     */
    @Override
    public List<TDoubtfulBill> selectTDoubtfulBillList(TDoubtfulBill tDoubtfulBill)
    {
        return tDoubtfulBillMapper.selectTDoubtfulBillList(tDoubtfulBill);
    }

    /**
     * 新增疑义账单
     * 
     * @param tDoubtfulBill 疑义账单
     * @return 结果
     */
    @Override
    public int insertTDoubtfulBill(TDoubtfulBill tDoubtfulBill)
    {
        return tDoubtfulBillMapper.insertTDoubtfulBill(tDoubtfulBill);
    }

    /**
     * 修改疑义账单
     * 
     * @param tDoubtfulBill 疑义账单
     * @return 结果
     */
    @Override
    public int updateTDoubtfulBill(TDoubtfulBill tDoubtfulBill)
    {
        return tDoubtfulBillMapper.updateTDoubtfulBill(tDoubtfulBill);
    }

    /**
     * 批量删除疑义账单
     * 
     * @param billIds 需要删除的疑义账单主键
     * @return 结果
     */
    @Override
    public int deleteTDoubtfulBillByBillIds(Long[] billIds)
    {
        return tDoubtfulBillMapper.deleteTDoubtfulBillByBillIds(billIds);
    }

    /**
     * 删除疑义账单信息
     * 
     * @param billId 疑义账单主键
     * @return 结果
     */
    @Override
    public int deleteTDoubtfulBillByBillId(Long billId)
    {
        return tDoubtfulBillMapper.deleteTDoubtfulBillByBillId(billId);
    }
}
